package com.mentalaxis.data {
	class InputTest {

		public var tag : String;

		private var _name : String;	

		private var _id : Number;

		private var _date : Date;

		private var _created : Boolean;

		[Effect]
		
		[Event]
		
		[Style]
		
		public function InputTest(name : String, id : Number, date : Date) 
		{
			init(name, id, date);
			this.created = false;
			createRecord();
		}

		public function test( message : String ) : Void 
		{
			trace(message);
		}

		private function init(name : String, id : Number, date : Date) : Object 
		{
			_date = date;
			_id = id;
			_name = name;
		}

		private function createRecord() 
		{
			if(!_created) {
				_created = Record.sendData(id, date, name);			
			}
		}

		public function get date():Date 
		{
			return _date;
		}
		
		public function set date( value:Date ):void
		{
			_date = value;
		}

		public function toString():String 
		{
			return "com.mentalaxis.data.InputTest";
		}
	}
}
